package com.ht.pms.core.common.exception;

/**
 * excel 解析异常
 * @author yuewen
 *
 */
public class ExcelParseException extends RuntimeException{

	private static final long serialVersionUID = 1048975723516710524L;
	
	private int errorCode;
	private String errorMsg;

	public ExcelParseException(String errorMsg) {
		super(errorMsg);
		this.errorMsg = errorMsg;
	}

	public ExcelParseException(int errorCode, String errorMsg) {
		super(errorMsg);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public ExcelParseException(int errorCode, String errorMsg, Throwable e) {
		super(e);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
}
